package com.chao.common.util.doc.bean;

import com.chao.common.util.reaction.Reaction;


/**
 * 字段
 * chao
 * 2022-11-17
 */
public class ModularField implements Reaction {


	/**
	* 模块id
	*/
	private String modularId;

	/**
	* 实体类名
	*/
	private String fieldClass;

	/**
	* 字段名
	*/
	private String fieldName;

	/**
	* 字段类型
	*/
	private String fieldType;

	/**
	* 字段注释
	*/
	private String fieldComment;

	/**
	* 是否主键 1是 2否
	*/
	private String isKey;

	/**
	* 字段顺序
	*/
	private String fieldSort;

	/**
	* 是否自定义对象 1是 2否
	*/
	private String isBean;

	/**
	* 关联对象类名
	*/
	private String className;

	/**
	* 备用字段4
	*/
	private String spareField4;

	/**
	* 备用字段5
	*/
	private String spareField5;

	/**
	* 备用字段6
	*/
	private String spareField6;

	/**
	* 备用字段7
	*/
	private String spareField7;

	/**
	* 备用字段8
	*/
	private String spareField8;

	/**
	* 备用字段9
	*/
	private String spareField9;

	@Override
	public boolean equals(Object obj) {
		if(!(obj instanceof ModularField)){
			return false;
		}
		ModularField modularField = (ModularField) obj;
		return modularField.getFieldClass().equals(this.fieldClass) && modularField.getFieldName().equals(this.fieldName) ;
	}

	@Override
	public int hashCode(){
		return (this.fieldClass + this.fieldName).hashCode();
	}


	public String getModularId() {
		return modularId;
	}

	public void setModularId(String modularId) {
		this.modularId = modularId;
	}

	public String getFieldClass() {
		return fieldClass;
	}

	public void setFieldClass(String fieldClass) {
		this.fieldClass = fieldClass;
	}

	public String getFieldName() {
		return fieldName;
	}

	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}

	public String getFieldType() {
		return fieldType;
	}

	public void setFieldType(String fieldType) {
		this.fieldType = fieldType;
	}

	public String getFieldComment() {
		return fieldComment;
	}

	public void setFieldComment(String fieldComment) {
		this.fieldComment = fieldComment;
	}

	public String getIsKey() {
		return isKey;
	}

	public void setIsKey(String isKey) {
		this.isKey = isKey;
	}

	public String getFieldSort() {
		return fieldSort;
	}

	public void setFieldSort(String fieldSort) {
		this.fieldSort = fieldSort;
	}

	public String getIsBean() {
		return isBean;
	}

	public void setIsBean(String isBean) {
		this.isBean = isBean;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public String getSpareField4() {
		return spareField4;
	}

	public void setSpareField4(String spareField4) {
		this.spareField4 = spareField4;
	}

	public String getSpareField5() {
		return spareField5;
	}

	public void setSpareField5(String spareField5) {
		this.spareField5 = spareField5;
	}

	public String getSpareField6() {
		return spareField6;
	}

	public void setSpareField6(String spareField6) {
		this.spareField6 = spareField6;
	}

	public String getSpareField7() {
		return spareField7;
	}

	public void setSpareField7(String spareField7) {
		this.spareField7 = spareField7;
	}

	public String getSpareField8() {
		return spareField8;
	}

	public void setSpareField8(String spareField8) {
		this.spareField8 = spareField8;
	}

	public String getSpareField9() {
		return spareField9;
	}

	public void setSpareField9(String spareField9) {
		this.spareField9 = spareField9;
	}
}